package com.dpxiao.news.news.dagger.module.activity;

import com.dpxiao.news.news.presenter.activity.MainActivityPresenter;
import com.dpxiao.news.news.ui.activity.MainActivity;

import dagger.Module;
import dagger.Provides;

/**
 * Created by a1899 on 2018/4/12.
 */


@Module
public class MainActivityModule {

    MainActivity mainActivity;
    public MainActivityModule(MainActivity mainActivity) {
        this.mainActivity = mainActivity;
    }

    @Provides
    MainActivityPresenter provideMainActivityPresenter() {
        return new MainActivityPresenter(mainActivity);
    }

}
